import { showToast,showLoadingToast,closeToast } from 'vant';

export const toast = showToast
export const loading = (message,duration)=>{
    showLoadingToast({
        duration:duration || 2000,
        message:message || '加载中...'
    })
}
export const clearToast = closeToast